package cn.ncupyh;

public class inhabitant {
    //属性
    private String name;
    private String id;
    private String birthday;

    //******
    public inhabitant(String name, String id, String birthday) {
        this.name = name;
        this.id = id;
        this.birthday = birthday;
    }

    public inhabitant() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
class mature extends inhabitant {
    //属性
    private String education;//学历
    private String occpuation;//职业

    //********
    public mature() {
    }

    public mature(String name, String id, String birthday, String education, String occpuation) {
        super(name, id, birthday);
        this.education = education;
        this.occpuation = occpuation;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getOccpuation() {
        return occpuation;
    }

    public void setOccpuation(String occpuation) {
        this.occpuation = occpuation;
    }
}
    class officer extends mature {
    //属性
        private String party;//党派
        private String job;//职务

//        ********

        public officer(String name, String id, String birthday, String education, String occpuation, String party, String job) {
            super(name, id, birthday, education, occpuation);
            this.party = party;
            this.job = job;
        }

        public String getParty() {
            return party;
        }

        public void setParty(String party) {
            this.party = party;
        }

        public String getJob() {
            return job;
        }

        public void setJob(String job) {
            this.job = job;
        }
    }
